
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )

include('shared.lua')


function ENT:Initialize()

	self:SetModel( "models/Humans/Group01/Female_01.mdl" )

	self:SetHullType( HULL_HUMAN );
	self:SetHullSizeNormal();

	self:SetSolid( SOLID_BBOX )
	self:SetMoveType( MOVETYPE_STEP )

	self:CapabilitiesAdd( CAP_OPEN_DOORS | CAP_ANIMATEDFACE | CAP_TURN_HEAD | CAP_USE_SHOT_REGULATOR | CAP_AIM_GUN )

	self:SetMaxYawSpeed( 5000 )

	//don't touch stuff above here
	self:SetHealth(100)
	self:SetUseType(SIMPLE_USE)

	local sequence = self.Entity:LookupSequence("idle")
	self.Entity:SetSequence(sequence)

end




 function ENT:OnTakeDamage(dmg)
	self:SetHealth(self:Health() - dmg:GetDamage())
	if self:Health() <= 0 then //run on death
		self:SetSchedule( SCHED_FALL_TO_GROUND ) //because it's given a new schedule, the old one will end.
	end
end




function ENT:AcceptInput( name, activator, caller, data )
	if ( caller:IsPlayer() ) then
		umsg.Start("open_shoppanel", caller)
		umsg.End()
	end
end
